<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title> - 聊天窗口</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
		<link rel="shortcut icon" href="favicon.ico">
		<link href="__STATIC__/css/bootstrap.min.css" rel="stylesheet">
		<link href="__STATIC__/css/font-awesome.css" rel="stylesheet">
		<link href="__STATIC__/css/plugins/jsTree/style.min.css" rel="stylesheet">
		<link href="__STATIC__/css/animate.css" rel="stylesheet">
		<link href="__STATIC__/css/style.css" rel="stylesheet">
	</head>
	<body class="fixed-sidebar full-height-layout gray-bg  pace-done">
		<include file="Public/left" title="left" />
		<div id="wrapper">
			<div id="page-wrapper" class="gray-bg dashbard-1" style="height: auto;">
				<include file="Public/top" title="top" />
				<div class="row">
					<div class="col-sm-12">
						<div class="ibox-content" style="padding-bottom: 0;">
							<table class="table table-striped">
								<tbody>
									<tr>
										<td style="text-align: right;">用户</td>
										<td>{$info.userid|getName}</td>
									</tr>
									<tr>
										<td style="text-align: right;">工单标题</td>
										<td>{$info.desc}</td>
									</tr>
									<tr>
										<td style="text-align: right;">提交时间 </td>
										<td>{$info.addtime}</td>
									</tr>
									<tr>
										<td style="text-align: right;">工单编号 </td>
										<td>{$info.tno} </td>
									</tr>
									<tr>
										<td style="text-align: right;">状态</td>
										<td>{$info.status|getTicketzt} </td>
									</tr>
									<tr>
										<td style="text-align: right;"> 机密信息 </td>
										<td> {$info.jimidesc} </td>
									</tr>
								</tbody>
							</table>
						</div>

						<div class="ibox chat-view">
							<div class="ibox-title">
								沟通记录
							</div>
							<div class="ibox-content">
								<div class="row">
									<div class="col-md-12">
										<div class="chat-discussion" style="height: auto;">
											<foreach name="list" item="v" key="k">
												<div class="chat-message">
													<img class="message-avatar" src="__STATIC__/img/<if condition='$v.userid eq $info.userid'>pgyuser2.png<else/>pgykf.png</if>" alt="" class="message-avatar avatar-user">
													<div class="message">
														<if condition="$v.userid eq $info.userid ">用户
															<else/>客服</if><span class="message-date"> {$v.addtime} </span>
														<span class="message-content">{$v.desc}</span>
													</div>
												</div>
												<div class="chat-message">
													<img class="message-avatar" src="__STATIC__/img/<if condition='$v.userid eq $info.userid'>pgyuser2.png<else/>pgykf.png</if>" alt="" class="message-avatar avatar-user">
													<div class="message">
														<if condition="$v.userid eq $info.userid ">客服
															<else/>用户</if>
															<span class="message-date"> {$v.addtime} </span>
														<span class="message-content">您好,请在设置里面设置是内部上传</span>
													</div>
												</div>
											</foreach>
										</div>
									</div>
								</div>
								<div class="row">
									<div class="col-sm-12">
										<div class="chat-message-form">
											 <form action="{:U('ticket/update')}" method="post">
											<div class="form-group">
												<textarea class="form-control message-input" name="desc" placeholder="请输入回复内容" style="resize: none;"></textarea>
											</div>
											<div class="form-group" style="margin: 20px;">
											   <button class="btn btn-info" type="submit">保存内容</button>
										    </div>
											</form>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- 全局js -->
		<script src="__STATIC__/js/jquery.min.js"></script>
		<script src="__STATIC__/js/bootstrap.min.js"></script>
		<!-- 自定义js -->
		<script src="__STATIC__/js/content.js"></script>
	</body>

</html>